package com.manor.common.bean;

import com.alibaba.fastjson.annotation.JSONField;
import com.manor.common.utils.StringUtil;

/**
 * Created by cxf on 2017/8/5.
 */

public class ConfigBean {

    private String version;//Android apk安装包 版本号
    private String downloadApkUrl;//Android apk安装包 下载地址
    private String updateDes;//版本更新描述
    private String[] loginType;//三方登录类型
    private String[] shareType;//分享类型
    private String coinName;//钻石名称
    private String votesName;//映票名称
    private String videoShareTitle;//短视频分享标题
    private String videoShareDes;//短视频分享描述
    private String agentShareTitle;//全民赚钱分享标题
    private String agentShareDes;//全民赚钱分享描述
    private int videoAuditSwitch;//短视频审核是否开启
    private int videoCloudType;//短视频云储存类型 1七牛云 2腾讯云
    private String videoQiNiuHost;//短视频七牛云域名
    private String txCosAppId;//腾讯云存储appId
    private String txCosRegion;//腾讯云存储区域
    private String txCosBucketName;//腾讯云存储桶名字
    private String txCosVideoPath;//腾讯云存储视频文件夹
    private String txCosImagePath;//腾讯云存储图片文件夹
    private int maintainSwitch;//维护开关
    private String maintainTips;//维护提示
    private String mTxImGroupId;//腾讯IM大群ID
    private String mImTip;


    private String beautyKey;//美颜鉴权码
    private int skin_whiting;
    private int skin_smooth;
    private int skin_tenderness;
//    private int skin_saturation;
    private int big_eye;
    private int eye_brow;
    private int eye_length;
    private int eye_corner;
    private int face_lift;
    private int mouse_lift;
    private int nose_lift;
    private int chin_lift;
    private int forehead_lift;
    private int lengthen_noseLift;
    private int face_shave;
    private int eye_alat;
    private String updateUrl;
    private String isForce;
    private String  versionCode = "0";
    private String  elvesSwitch;
    private String  marketSwitch;
    private String  marketToggle;//应用市场的字符串
    private String  advSwitch;
    private String  upType;//1全量更新 2增量更新 3新增补丁
    private String  patchUrl;

    @JSONField(name = "apk_zlgx")
    public String getUpType() {
        return upType;
    }

    @JSONField(name = "apk_zlgx")
    public void setUpType(String upType) {
        this.upType = upType;
    }

    @JSONField(name = "apk_zlgx_path")
    public String getPatchUrl() {
        return patchUrl;
    }

    @JSONField(name = "apk_zlgx_path")
    public void setPatchUrl(String patchUrl) {
        this.patchUrl = patchUrl;
    }

    @JSONField(name = "android_jl_switch")
    public String getElvesSwitch() {
        //应用市场上架使用marketSwitch
//        return getMarketSwitch();
        return elvesSwitch;
    }

    @JSONField(name = "android_jl_switch")
    public void setElvesSwitch(String elvesSwitch) {
        this.elvesSwitch = elvesSwitch;
    }


    @JSONField(name = "android_jl_switch_zfc")
    public String getMarketToggle() {
        return marketToggle;
    }

    @JSONField(name = "android_jl_switch_zfc")
    public void setMarketToggle(String marketToggle) {
        this.marketToggle = marketToggle;
    }


    @JSONField(name = "android_jl_switch_yysc")
    public String getMarketSwitch() {
        return marketSwitch;
    }

    @JSONField(name = "android_jl_switch_yysc")
    public void setMarketSwitch(String marketSwitch) {
        this.marketSwitch = marketSwitch;
    }

    @JSONField(name = "android_adv_switch")
    public String getAdvSwitch() {
        return advSwitch;
    }

    @JSONField(name = "android_adv_switch")
    public void setAdvSwitch(String advSwitch) {
        this.advSwitch = advSwitch;
    }

    @JSONField(name = "versionCode")
    public String getVersionCode() {
        return versionCode;
    }

    @JSONField(name = "versionCode")
    public void setVersionCode(String versionCode) {
        this.versionCode = versionCode;
    }

    public int  getCurVersionCode(){
        if (StringUtil.isEmpty(versionCode)){
            return 0;
        }
        return  Integer.parseInt(versionCode);
    }


    @JSONField(name = "apk_update_url")
    public String getUpdateUrl() {
        return updateUrl;
    }

    @JSONField(name = "apk_update_url")
    public void setUpdateUrl(String updateUrl) {
        this.updateUrl = updateUrl;
    }

    @JSONField(name = "apk_update_app")
    public String getIsForce() {
        return isForce;
    }

    @JSONField(name = "apk_update_app")
    public void setIsForce(String isForce) {
        this.isForce = isForce;
    }

    @JSONField(name = "apk_ver")
    public String getVersion() {
        return version;
    }

    @JSONField(name = "apk_ver")
    public void setVersion(String version) {
        this.version = version;
    }

    @JSONField(name = "apk_url")
    public String getDownloadApkUrl() {
        return downloadApkUrl;
    }

    @JSONField(name = "apk_url")
    public void setDownloadApkUrl(String downloadApkUrl) {
        this.downloadApkUrl = downloadApkUrl;
    }

    @JSONField(name = "apk_des")
    public String getUpdateDes() {
        return updateDes;
    }

    @JSONField(name = "apk_des")
    public void setUpdateDes(String updateDes) {
        this.updateDes = updateDes;
    }


    @JSONField(name = "name_coin")
    public String getCoinName() {
        return coinName;
    }

    @JSONField(name = "name_coin")
    public void setCoinName(String coinName) {
        this.coinName = coinName;
    }

    @JSONField(name = "name_votes")
    public String getVotesName() {
        return votesName;
    }

    @JSONField(name = "name_votes")
    public void setVotesName(String votesName) {
        this.votesName = votesName;
    }


    @JSONField(name = "login_type")
    public String[] getLoginType() {
        return loginType;
    }

    @JSONField(name = "login_type")
    public void setLoginType(String[] loginType) {
        this.loginType = loginType;
    }

    @JSONField(name = "share_type")
    public String[] getShareType() {
        return shareType;
    }

    @JSONField(name = "share_type")
    public void setShareType(String[] shareType) {
        this.shareType = shareType;
    }

    @JSONField(name = "maintain_switch")
    public int getMaintainSwitch() {
        return maintainSwitch;
    }

    @JSONField(name = "maintain_switch")
    public void setMaintainSwitch(int maintainSwitch) {
        this.maintainSwitch = maintainSwitch;
    }

    @JSONField(name = "maintain_tips")
    public String getMaintainTips() {
        if (StringUtil.isEmpty(maintainTips))
            maintainTips = "";
        return maintainTips;
    }

    @JSONField(name = "maintain_tips")
    public void setMaintainTips(String maintainTips) {
        this.maintainTips = maintainTips;
    }

    @JSONField(name = "full_group_id")
    public String getTxImGroupId() {
        return mTxImGroupId;
    }

    @JSONField(name = "full_group_id")
    public void setTxImGroupId(String txImGroupId) {
        mTxImGroupId = txImGroupId;
    }

    @JSONField(name = "sprout_key")
    public String getBeautyKey() {
        return beautyKey;
    }

    @JSONField(name = "sprout_key")
    public void setBeautyKey(String beautyKey) {
        this.beautyKey = beautyKey;
    }

//    @JSONField(name = "sprout_white")
//    public int getBeautyMeiBai() {
//        return beautyMeiBai;
//    }
//
//    @JSONField(name = "sprout_white")
//    public void setBeautyMeiBai(int beautyMeiBai) {
//        this.beautyMeiBai = beautyMeiBai;
//    }
//
//    @JSONField(name = "sprout_skin")
//    public int getBeautyMoPi() {
//        return beautyMoPi;
//    }
//
//    @JSONField(name = "sprout_skin")
//    public void setBeautyMoPi(int beautyMoPi) {
//        this.beautyMoPi = beautyMoPi;
//    }
//
//    @JSONField(name = "sprout_saturated")
//    public int getBeautyBaoHe() {
//        return beautyBaoHe;
//    }
//
//    @JSONField(name = "sprout_saturated")
//    public void setBeautyBaoHe(int beautyBaoHe) {
//        this.beautyBaoHe = beautyBaoHe;
//    }
//
//    @JSONField(name = "sprout_pink")
//    public int getBeautyFenNen() {
//        return beautyFenNen;
//    }
//
//    @JSONField(name = "sprout_pink")
//    public void setBeautyFenNen(int beautyFenNen) {
//        this.beautyFenNen = beautyFenNen;
//    }
//
//    @JSONField(name = "sprout_eye")
//    public int getBeautyBigEye() {
//        return beautyBigEye;
//    }
//
//    @JSONField(name = "sprout_eye")
//    public void setBeautyBigEye(int beautyBigEye) {
//        this.beautyBigEye = beautyBigEye;
//    }
//
//    @JSONField(name = "sprout_face")
//    public int getBeautyFace() {
//        return beautyFace;
//    }
//
//    @JSONField(name = "sprout_face")
//    public void setBeautyFace(int beautyFace) {
//        this.beautyFace = beautyFace;
//    }


    public String[] getVideoShareTypes() {
        return shareType;
    }

    @JSONField(name = "share_video_title")
    public String getVideoShareTitle() {
        return videoShareTitle;
    }

    @JSONField(name = "share_video_title")
    public void setVideoShareTitle(String videoShareTitle) {
        this.videoShareTitle = videoShareTitle;
    }

    @JSONField(name = "share_video_des")
    public String getVideoShareDes() {
        return videoShareDes;
    }

    @JSONField(name = "share_video_des")
    public void setVideoShareDes(String videoShareDes) {
        this.videoShareDes = videoShareDes;
    }

    @JSONField(name = "share_agent_title")
    public String getAgentShareTitle() {
        return agentShareTitle;
    }

    @JSONField(name = "share_agent_title")
    public void setAgentShareTitle(String agentShareTitle) {
        this.agentShareTitle = agentShareTitle;
    }

    @JSONField(name = "share_agent_des")
    public String getAgentShareDes() {
        return agentShareDes;
    }

    @JSONField(name = "share_agent_des")
    public void setAgentShareDes(String agentShareDes) {
        this.agentShareDes = agentShareDes;
    }

    @JSONField(name = "video_audit_switch")
    public int getVideoAuditSwitch() {
        return videoAuditSwitch;
    }

    @JSONField(name = "video_audit_switch")
    public void setVideoAuditSwitch(int videoAuditSwitch) {
        this.videoAuditSwitch = videoAuditSwitch;
    }

    @JSONField(name = "cloudtype")
    public int getVideoCloudType() {
        return videoCloudType;
    }

    @JSONField(name = "cloudtype")
    public void setVideoCloudType(int videoCloudType) {
        this.videoCloudType = videoCloudType;
    }

    @JSONField(name = "qiniu_domain")
    public String getVideoQiNiuHost() {
        return videoQiNiuHost;
    }

    @JSONField(name = "qiniu_domain")
    public void setVideoQiNiuHost(String videoQiNiuHost) {
        this.videoQiNiuHost = videoQiNiuHost;
    }

    @JSONField(name = "txcloud_appid")
    public String getTxCosAppId() {
        return txCosAppId;
    }

    @JSONField(name = "txcloud_appid")
    public void setTxCosAppId(String txCosAppId) {
        this.txCosAppId = txCosAppId;
    }

    @JSONField(name = "txcloud_region")
    public String getTxCosRegion() {
        return txCosRegion;
    }

    @JSONField(name = "txcloud_region")
    public void setTxCosRegion(String txCosRegion) {
        this.txCosRegion = txCosRegion;
    }

    @JSONField(name = "txcloud_bucket")
    public String getTxCosBucketName() {
        return txCosBucketName;
    }

    @JSONField(name = "txcloud_bucket")
    public void setTxCosBucketName(String txCosBucketName) {
        this.txCosBucketName = txCosBucketName;
    }

    @JSONField(name = "txvideofolder")
    public String getTxCosVideoPath() {
        return txCosVideoPath;
    }

    @JSONField(name = "txvideofolder")
    public void setTxCosVideoPath(String txCosVideoPath) {
        this.txCosVideoPath = txCosVideoPath;
    }

    @JSONField(name = "tximgfolder")
    public String getTxCosImagePath() {
        return txCosImagePath;
    }

    @JSONField(name = "tximgfolder")
    public void setTxCosImagePath(String txCosImagePath) {
        this.txCosImagePath = txCosImagePath;
    }

    @JSONField(name = "im_tips")
    public String getImTip() {
        return mImTip;
    }

    @JSONField(name = "im_tips")
    public void setImTip(String imTip) {
        mImTip = imTip;
    }

    public MeiyanConfig parseMeiyanConfig(){
        return new MeiyanConfig(
                skin_whiting,
                skin_smooth,
                skin_tenderness,
                50,
                big_eye,
                eye_brow,
                eye_length,
                eye_corner,
                face_lift,
                mouse_lift,
                nose_lift,
                chin_lift,
                forehead_lift,
                lengthen_noseLift,
                face_shave,
                eye_alat
        );
    }

    public int getSkin_whiting() {
        return skin_whiting;
    }

    public void setSkin_whiting(int skin_whiting) {
        this.skin_whiting = skin_whiting;
    }

    public int getSkin_smooth() {
        return skin_smooth;
    }

    public void setSkin_smooth(int skin_smooth) {
        this.skin_smooth = skin_smooth;
    }

    public int getSkin_tenderness() {
        return skin_tenderness;
    }

    public void setSkin_tenderness(int skin_tenderness) {
        this.skin_tenderness = skin_tenderness;
    }

    public int getEye_brow() {
        return eye_brow;
    }

    public void setEye_brow(int eye_brow) {
        this.eye_brow = eye_brow;
    }

    public int getBig_eye() {
        return big_eye;
    }

    public void setBig_eye(int big_eye) {
        this.big_eye = big_eye;
    }

    public int getEye_length() {
        return eye_length;
    }

    public void setEye_length(int eye_length) {
        this.eye_length = eye_length;
    }

    public int getEye_corner() {
        return eye_corner;
    }

    public void setEye_corner(int eye_corner) {
        this.eye_corner = eye_corner;
    }

    public int getEye_alat() {
        return eye_alat;
    }

    public void setEye_alat(int eye_alat) {
        this.eye_alat = eye_alat;
    }

    public int getFace_lift() {
        return face_lift;
    }

    public void setFace_lift(int face_lift) {
        this.face_lift = face_lift;
    }

    public int getFace_shave() {
        return face_shave;
    }

    public void setFace_shave(int face_shave) {
        this.face_shave = face_shave;
    }

    public int getMouse_lift() {
        return mouse_lift;
    }

    public void setMouse_lift(int mouse_lift) {
        this.mouse_lift = mouse_lift;
    }

    public int getNose_lift() {
        return nose_lift;
    }

    public void setNose_lift(int nose_lift) {
        this.nose_lift = nose_lift;
    }

    public int getChin_lift() {
        return chin_lift;
    }

    public void setChin_lift(int chin_lift) {
        this.chin_lift = chin_lift;
    }

    public int getForehead_lift() {
        return forehead_lift;
    }

    public void setForehead_lift(int forehead_lift) {
        this.forehead_lift = forehead_lift;
    }

    public int getLengthen_noseLift() {
        return lengthen_noseLift;
    }

    public void setLengthen_noseLift(int lengthen_noseLift) {
        this.lengthen_noseLift = lengthen_noseLift;
    }
}
